package com.dqyt.lhq.controller;

import com.dqyt.khjc.bean.ResultMsg;
import com.dqyt.khjc.mapper.UserMapper;
import com.dqyt.lhq.service.LhqUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class LhqUserController {

    @Autowired
    private LhqUserService lhqUserService;



    /**
     * 查询某个角色的所有用户
     *
     * @param request
     * @return
     */
    @RequestMapping(value = "/api/getUserByRole8", method = {RequestMethod.GET, RequestMethod.POST})
    public ResultMsg getUserByRole2(HttpServletRequest request) {
        ResultMsg resultMsg = lhqUserService.getUserByRole8(request);
        return resultMsg;
    }
}
